import Mock from 'mockjs'
const template = {
  "jobName": '@name',
  "beanName": '@name',
  "method": '@name',
  "concurrent|0-1": 1,
  "cronExp": '@name',
  "status|0-2": 1,
  "times|1-10": 1,
  "createTime": '@DATETIME("yyyy-MM-dd")',
  "updateTime": '@DATETIME("yyyy-MM-dd")'
};
export default {
  mockData () {
    Mock.mock('/api/job', {
      "messages":"操作成功",
      "code": "200",
      "result|20": [
        template
      ]
    });
    Mock.mock('/api/file', {
      "messages":"操作成功",
      "code": "200",
      "result": [
        {
          "name": "@name",
          "path":"D:\\workspace\\health\\health-docs",
          "size|1000-10000":1000,
          "md5":"@name",
          "date":'@DATETIME("yyyy-MM-dd")'
        }

      ]
    });
  }
}
